<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./vue.js"></script>
</head>
<body>
<div id="root">
   <p v-for="item in goodsList" :key="item.id">
       <a :href="item.id | getGoodsUrl" target="_blank">{{item,title}}</a>
   </p>
</div>
</body>
<script>
    new Vue({
        el: "#root",
        data:{
            goodsList:[
                {
                    id:1717333,
                    title:"美的（Midea）【整机8年质保】50升电热水器2100W节..."
                },{
                    id:100212573316,
                    title:"小天鹅（LittleSwan）波轮洗衣机全自动 8公斤 一级...",
                    // https://item.jd.com/1717333.html
                }
            ]
        },
        filters:{
            getGoodsUrl(v){
                return `https://item.jd.com/${v}.html`
            }

        }

    })
</script>
</html>